package com.guomao.entity;

import com.guomao.functions.Collidable;
import com.guomao.functions.Hitable;
import com.guomao.functions.Recyclable;

public class Boss extends Element implements Collidable, Hitable, Recyclable {


    public Boss() {
    }

    public Boss(int x, int y) {
        this.x = x;
        this.y = y;
        super.path = "day16-javase-tank\\images\\boss.png";
        super.hp = 3;
        getSize();
    }

    @Override
    public Blast showBlast() {
        hp--;
        return new Blast(x, y, width, height);
    }

    @Override
    public boolean isOutside() {
        return hp <= 0;
    }
}
